package com.jia.train.seat.feign.fallback;

import com.jia.train.global.response.BaseResponse;
import com.jia.train.seat.feign.TrainMemberFeignClient;
import com.jia.train.seat.feign.pojo.TicketSaveRequest;
import com.jia.train.seat.feign.pojo.TicketSaveResponse;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class TrainMemberFeignFallback implements TrainMemberFeignClient {

    public static final Logger logger = LoggerFactory.getLogger(TrainMemberFeignFallback.class);


    @Override
    public BaseResponse<List<TicketSaveResponse>> createTicket(List<TicketSaveRequest> list) {
        logger.info("TrainMemberFeignFallback createTicket");
        throw new RuntimeException("fallback");
    }

}
